package systemweb

import (
	"go-middle/app/admin/service/loginservice"
	"go-middle/app/common/model/admin"

	"github.com/gogf/gf/net/ghttp"
)

//Index 系统框架页
func Index(r *ghttp.Request) {
	var user admin.Entity
	r.Session.GetStruct(loginservice.AdminInfo, &user)
	r.GetView().Assign("user", user)
	r.Response.WriteTpl("admin/main/main.html")
}

//Home 系统首页
func Home(r *ghttp.Request) {
	r.Response.WriteTpl("admin/main/home.html")
}
